@isTest
private class TestContactFactory {

    @isTest
    static void testContactGenerateFactory() {
        String lastName = 'John Test';
    	List<Contact> aaList = RandomContactFactory.generateRandomContacts(5, lastName);
        //Test.startTest();
        // Contact[] aaList = [SELECT ID FROM Contact WHERE LastName = :lastName];
        //Test.stopTest();
        System.debug('数量：'+aaList.size());
        System.assert(aaList.size() == 5);
        System.debug(aaList);
        for(Contact c : aaList) {
            System.debug(c.LastName);
        }
    }
    
}